package io;

import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

public class OSWDemo {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos = new FileOutputStream("osw.txt",true);
        OutputStreamWriter osw = new OutputStreamWriter(fos);
        osw.write("如果你突然打了个喷嚏，那一定是我在想你");
        osw.write("shangye");
        System.out.println("OK");
        osw.close();
    }
}
